<?php
	class IncludeException extends Exception{
		private $coreFile;
		/**
		 * 构造异常类
		 * @param string $message 错误 信息
		 * @param int $code  错误号
		 */
		public function __construct($file,$message, $code){
			$this->coreFile = $file;
			parent::__construct($message, $code);
		}
		
		public function getErrors(){
			header('Content-Type:text/html;charset=utf-8');
			$str =<<<str
			<title>{$this->message}</title>
			<div style='font-family:微软雅黑;color:#333;background:#F8F8F8;padding:20px;width:1000px;margin:0 auto;height:500px;'>
			<h1>{$this->message}</h1>
			<h2>执行文件:{$this->file} \t \t \t 行号:{$this->getLine()}</h2>
			<h3>核心文件名:{$this->coreFile}</h3>
			<h4>错误代码:{$this->code}</h4>		
			</div>
			
str;
			return $str;
			
		}
		
	}